<?php echo $this->fetch('header.html'); ?>
<div class="conter">
  <?php echo $this->fetch('header.common.html'); ?>
  <div class="layerbox_kuan">
  
  <a href="index.php?app=my_kdorder&act=add" style="line-height:30px; color:#00F; display:block">填写发货运单+</a>
  <?php $_from = $this->_var['orders']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'order');$this->_foreach['_goods_f'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['_goods_f']['total'] > 0):
    foreach ($_from AS $this->_var['order']):
        $this->_foreach['_goods_f']['iteration']++;
?>
  <div class="layerbox">
    <div class="layerbox-head">
    <ul>
      <li><a href="index.php?app=my_kdorder&act=view&order_id=<?php echo $this->_var['order']['order_id']; ?>">
        <?php if ($this->_var['order']['status'] == '0'): ?><font color="#f00">未入库</font>
        <?php elseif ($this->_var['order']['status'] == '1'): ?><font color="#FF9900">部分入库</font>
        <?php elseif ($this->_var['order']['status'] == '2'): ?><font color="#009966">已入库</font>
        <?php elseif ($this->_var['order']['status'] == '3'): ?><font color="#00f">待付款</font>
        <?php elseif ($this->_var['order']['status'] == '5'): ?><font color="#3399CC">已付款</font>
        <?php elseif ($this->_var['order']['status'] == '6'): ?><font color="#FF00FF">待发货</font>
        <?php elseif ($this->_var['order']['status'] == '7'): ?><font color="#336600">已发货</font>
        <?php elseif ($this->_var['order']['status'] == '8'): ?>已完成
        <?php elseif ($this->_var['order']['status'] == '9'): ?><font color="#999">已取消</font>
        <?php endif; ?></a></li>
      <li style="font-size:12px;color:#666">添加时间：<?php echo local_date("Y-m-d",$this->_var['order']['addtime']); ?></li>
      <li style="float:right">
      <?php if ($this->_var['order']['status'] == 3): ?><a href="javascript:alert('手机端暂未开通该功能，敬请期待');" target="_blank" style="color:#f00">立即付款</a>
      <?php elseif ($this->_var['order']['status'] == 0): ?>
      <a href="index.php?app=my_kdorder&act=edit&order_id=<?php echo $this->_var['order']['order_id']; ?>" class="links">修改</a>&nbsp;&nbsp;
      <a href="javascript:drop_confirm('删除后不可恢复，您确定要删除吗？','index.php?app=my_kdorder&act=drop&id=<?php echo $this->_var['order']['order_id']; ?>');" class="links">删除</a>
      <?php else: ?><a href="index.php?app=my_kdorder&act=view&order_id=<?php echo $this->_var['order']['order_id']; ?>" class="links">查看</a>
      <?php endif; ?>
      </li>
    </ul><i></i></div>
    <div class="layerbox-text"><font>快递单号：</font><?php echo htmlspecialchars($this->_var['order']['yundanhao']); ?><br />
    <font>物品数量：</font><?php echo $this->_var['order']['SumGoodsAmount']; ?>件&nbsp;&nbsp;<font>物品价值：</font><?php echo $this->_var['order']['SumGoodsWorth']; ?><br />
    <font>收&nbsp;件&nbsp;人：</font><?php echo $this->_var['order']['txtRece_name']; ?>&nbsp;&nbsp;<font>手机电话：</font><?php echo $this->_var['order']['txtRece_mobilephone']; ?>
    </div>
  </div>
    <?php endforeach; else: ?>
    <div class="no_data">没有相关记录</div>     
    <?php endif; unset($_from); ?><?php $this->pop_vars();; ?>
  <?php echo $this->fetch('page.bottom.html'); ?>
  </div>

<?php echo $this->fetch('footer.html'); ?>
</div>
</body>
</html>